﻿using SQLPXBase.Factory.Keys;

namespace SQLPXBase.Factory
{
    public abstract class ModelEraser<T, px>
        where T : FactorizableModel<px>
        where px : Interfaces.ISQLProxyBase, new()
    {
        protected PrimaryKey id { get; private set; }

        public ModelEraser(PrimaryKey id)
        {
            this.id = id;
        }

        public abstract void Delete(ModelFactory<px> factory);
    }
}
